#pragma once

#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#define Die(code)   \
    do              \
    {               \
        exit(code); \
    } while (0)
#define CONV(v) (struct sockaddr *)v // 类型强转
enum class Code
{
    SOCKETERROR = 1,
    BINDERROR,
    USAGEERROR
};